package cn.gok.exam;

public class Test {
    public static void main(String[] args) {
        Teacher teacher = new Teacher(){
            @Override
            public int teacher() {
                return 20;
            }
        };
        Teacher teacher1 = new Teacher(){
            @Override
            public int teacher() {
                return 30;
            }
        };
        System.out.println(teacher.teacher());
        System.out.println(teacher1.teacher());
    }
}
